package com.nian.db.mysql.mycat.simple.model;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/16 0016 15:39
 */
@Data
@Entity
@Table(name="user")
public class MyCatUser implements Serializable {

    @Id
    @Column(name = "id")
    private String id;

    @Column(name="name")
    private String name;

    @Column(name="code")
    private String code;

    @Column(name="remark")
    private String remark;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name="createTime")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name="updateTime")
    private Date updateTime;

    @Column(name="delete_flag", columnDefinition="tinyint default 0")
    private Integer deleteFlag;
}
